Skip to content

fix: accept string or number for analyze tool depth parameters#5444

Closed
tlongwell-block wants to merge 4 commits into
mainfrom
analyze_input_flex
Closed

fix: accept string or number for analyze tool depth parameters#5444
tlongwell-block wants to merge 4 commits into
mainfrom
analyze_input_flex

Conversation

@tlongwell-block

Copy link
Copy Markdown
Collaborator

The analyze tool in the developer MCP extension expects numeric parameters (max_depth and follow_depth) as integers, but AI agents sometimes pass these as strings (e.g., "2" instead of 2), causing deserialization failures. This simple fix adds a flexible deserializer that accepts both formats, making the tool more forgiving and agent-friendly without changing its behavior—similar to how web forms accept both numeric and string inputs for number fields.

@tlongwell-block

Copy link
Copy Markdown
Collaborator Author

Closed in favor of #5478

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant